package edu.zut.bailan.student.domain;

import edu.zut.bailan.base.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import java.util.Set;

public class Student extends BaseEntity<Long> {

/**
 *
 */
private static final long serialVersionUID = -6980293928624855032L;

/**
 * code for Student
 */
@Column(name = "CODE")
	String code;

/**
 * name for Student
 */
@Column(name = "NAME")
	String name;

/**
 * postcode of student
 */
@Column(name = "POSTCODE")
	String postcode;

/**
 * phone for student
 */
@Column(name = "PHONE")
	Long phone;

/**
 * address for student
 */
@Column(name = "ADDRESS")
	String address;

@ManyToOne
@JoinColumn(name = "CUSTOMER_GROUP_ID")
StudentGroup studentGroup;

/**
 * feedback of student
 */
@ManyToMany
Set<StudentFeedBack> studentFeedBacks;

public String getCode() {
        return code;
        }

public void setCode(String code) {
        this.code = code;
        }

public String getName() {
        return name;
        }

public void setName(String name) {
        this.name = name;
        }

public Long getPhone() {
        return phone;
        }

public void setPhone(Long phone) {
        this.phone = phone;
        }


public String getAddress() {
        return address;
        }

public void setAddress(String address) {
        this.address = address;
        }


public String getPostcode() {
        return postcode;
        }

public void setPostcode(String postcode) {
        this.postcode = postcode;
        }

public Set<StudentFeedBack> getStudentFeedBacks() {
        return studentFeedBacks;
        }

public void setCustomerFeedBacks(Set<StudentFeedBack> studentFeedBacks) {
        this.studentFeedBacks = studentFeedBacks;
        }

public StudentGroup getStudentGroup() {
        return studentGroup;
        }

public void setStudentGroup(StudentGroup studentGroup) {
        this.studentGroup =studentGroup;
        }
}
